public class DiscardRejectHandle implements RejectHandle{
    public void reject(Runnable rejectCommand, MyThreadPool threadPool)
    {
        System.out.println("任务被丢弃");
        threadPool.blockingQueue.poll();
        threadPool.execute(rejectCommand);

    }
}
